//
//  HKViewController.m
//  HKLibNetwork
//
//  Created by HJT916109796 on 01/06/2021.
//  Copyright (c) 2021 HJT916109796. All rights reserved.
//

#import "HKViewController.h"
#import "BifrostHeader.h"
#import "NetworkModuleService.h"
#import "ZBNetworking.h"
#import "HKNetworkManager.h"
@interface HKViewController ()

@end

@implementation HKViewController
+ (void)load {
    [Bifrost bindURL:kRouteNetworkPage
           toHandler:^id _Nullable(NSDictionary * _Nullable parameters) {
        return [HKViewController new];
    }];
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationItem.title = @"网络请求测试";
    self.view.backgroundColor = [UIColor cyanColor];
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self sendRequest];
}
- (void)sendRequest {
    // 发起请求
    [[HKNetworkManager sharedInstance] sendPostRequestWithUrl:@"/customer/queryLineCustomerList" withParameters:nil success:^(id  _Nullable data) {
        NSLog(@"请求成功>>>>");
    } failure:^(NSString * _Nullable error) {
        NSLog(@"请求失败>>>>");
    }];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
